Excuse the low quality, but i need to know is there anyway to change an aspect of multiple variables at once rather than individually

I need to copy these multiple times and change them from room3 to room4 to room5…etc and wondered if there was a way to expedite this process rather than doing it individually

I need to copy these multiple times and change them from room3 to room4 to room5…etc and wondered if there was a way to expedite this process rather than doing it individually